package com.ynny.entity;

import java.math.BigDecimal;
import java.time.LocalDateTime;

public class Emp {

    private Integer empId;

    private String empName;

    private LocalDateTime birthday;

    private BigDecimal salary;

    private Integer age;

    private Integer departmentId;

    public Emp() {
    }

    public Emp(String empName, BigDecimal salary, Integer age, Integer departmentId) {
        this.empName = empName;
        this.salary = salary;
        this.age = age;
        this.departmentId = departmentId;
    }

    public Integer getEmpId() {
        return empId;
    }

    public void setEmpId(Integer empId) {
        this.empId = empId;
    }

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    public LocalDateTime getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDateTime birthday) {
        this.birthday = birthday;
    }

    public BigDecimal getSalary() {
        return salary;
    }

    public void setSalary(BigDecimal salary) {
        this.salary = salary;
    }

    public Integer getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(Integer departmentId) {
        this.departmentId = departmentId;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "empId=" + empId +
                ", empName='" + empName + '\'' +
                ", birthday=" + birthday +
                ", salary=" + salary +
                ", age=" + age +
                ", departmentId=" + departmentId +
                '}';
    }
}
